package com.ob.web.core.config.properties;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Data
@Slf4j
@Configuration
@ConfigurationProperties(prefix = "ob")
public class ObProperties {

    private Yuque yuque;
    private Gitee gitee;

    @PostConstruct
    public void init() {
        log.info("[OB] 1. 语雀配置: " + yuque.toString());
        log.info("[OB] 2. 码云配置: " + gitee.toString());
    }
}
